package qsc.designpattern.proxy.staticProxy;

/**
 * @auther QiuShangcheng
 * @create 2021/5/3
 */
public class Proxy implements Subject {
    private Subject qsc;

    public Proxy(Subject qsc) {
        this.qsc = qsc;
    }

    @Override
    public void practice() {
        System.out.println("邱尚成打开了电脑。");
        qsc.practice();
        System.out.println("邱尚成学习完了，关闭电脑。");
    }
}
